Skip to content

Conversation

@wrazik
Copy link

@wrazik wrazik commented Apr 22, 2020

Fixed C++ slide.
In a short:

 float area(Circle&& circle) { 

this can be a reference that not destroys passed object(!). Of course any normal person will assume that object will be eaten, but in a original example it was not. It sucks, but you can test it:
https://godbolt.org/z/edStvu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant